package model.dao;

import java.util.List;

import model.bo.Sub;

public interface ISubDAO {

	// property constants
	public static final String SUBNAME = "subname";

	public static final String FATHERID = "fatherid";

	public static final String SN = "sn";

	public abstract void save(Sub transientInstance);

	public abstract void delete(Sub persistentInstance);

	public abstract Sub findById(java.lang.Integer id);

	public abstract List findByExample(Sub instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findBySubname(Object subname);

	public abstract List findByFatherid(Object fatherid);

	public abstract List findBySn(Object sn);

	public abstract List findAll();

	public abstract Sub merge(Sub detachedInstance);

	public abstract void attachDirty(Sub instance);

	public abstract void attachClean(Sub instance);

}